//
//  UserDetails.m
//  Mecca
//
//  Created by Ryan Enguero on 5/20/14.
//  Copyright (c) 2014 TapDash Heuristics. All rights reserved.
//

#import "UserDetails.h"

@implementation UserDetails

- (NSString*) sessionID{

    return _sessionIDStr;
}

- (NSString*) contact{

    return _contactStr;
}

- (NSString*) credits{

    return _creditsStr;
}

- (NSString*) dname{

    return _dnameStr;
}

- (NSString*) email{

    return _emailStr;
}

- (NSString*) idUser{

    return _idStr;
}

- (NSString*) image{

    return _imageStr;
}

- (NSString*) password{

    return _passwordStr;
}

+ (instancetype)userWithSessionID:(NSString*)sessionID andContact:(NSString*)contact andCredits:(NSString*)credits andDisplayName:(NSString*)dName andEmail:(NSString*)email andIdUser:(NSString*)userID andImage:(NSString*)image andPassword:(NSString*)password{

    UserDetails *userDetails = [[self alloc] init];
    
    userDetails.sessionIDStr = sessionID;
    userDetails.contactStr = contact;
    userDetails.creditsStr = credits;
    userDetails.dnameStr = dName;
    userDetails.emailStr = email;
    userDetails.idStr = userID;
    userDetails.imageStr = image;
    userDetails.passwordStr = password;
    
    return userDetails;
    
}


@end
